PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme-Compliant Colors and Patterns

The colors used for interface elements may vary from theme to theme. If you are using standard interface elements (that is, system-defined windows, controls, and menus), the colors used for these elements automatically change with a theme change.

Some programs may not use standard interface elements in all instances, however. In such cases, to ensure that your interface elements coordinate with the current theme, you should use the Appearance Manager to determine the colors (and patterns) that your program uses. See Using Theme-Compliant Colors and Patterns for more details on this process.

To be theme-compliant, you should not use any set values for the colors of interface objects in your program. For example, compare the background colors of the two dialog boxes shown in Figure 2-8 . The non-theme-compliant dialog box uses a set background color of white, which contrasts with the theme-compliant dialog box, whose background color is automatically drawn in gray, the correct color for the current theme.

The Appearance Manager provides the following functions for setting the foreground or background of the current graphics port:

The Appearance Manager provides the following functions for working with text colors:

The Appearance Manager provides the following functions for obtaining theme color information:

The Appearance Manager provides the following functions for working with the drawing state of the current graphics port:


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)